<template>
    <div>
        <CrudTable :data="data"></CrudTable>
    </div>
</template>

<script lang="js">
import CrudTable from '@/components/CrudTable.vue'
import { getAllUser } from '@/api/user'

export default {
    components: {
        CrudTable,
    },
    data() {
        return {
            data: {}
        }
    },
    methods: {
        getData() {
            getAllUser().then((res) => {
                console.log(res)
                this.data = res.data
            })
        }
    },
    created() {
        this.getData()
    }
}
</script>